﻿namespace Xamarin.Forms.Shapes
{
    public class EllipseGeometry : Geometry
    {
        public static readonly BindableProperty CenterProperty =
            BindableProperty.Create(nameof(Center), typeof(Point), typeof(EllipseGeometry), new Point());

        public static readonly BindableProperty RadiusXProperty =
            BindableProperty.Create(nameof(RadiusX), typeof(double), typeof(EllipseGeometry), 0.0);

        public static readonly BindableProperty RadiusYProperty =
            BindableProperty.Create(nameof(RadiusY), typeof(double), typeof(EllipseGeometry), 0.0);

        public Point Center
        {
            set { SetValue(CenterProperty, value); }
            get { return (Point)GetValue(CenterProperty); }
        }

        public double RadiusX
        {
            set { SetValue(RadiusXProperty, value); }
            get { return (double)GetValue(RadiusXProperty); }
        }

        public double RadiusY
        {
            set { SetValue(RadiusYProperty, value); }
            get { return (double)GetValue(RadiusYProperty); }
        }
    }
}